package com.ssx.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Package com.ssx.cloud.service
 * @ClassName HystrixService
 * @Copyright: Copyright (c) 2020
 * @Date 2020/11/22 14:20
 * @Company www.sudaoxi.com.cn
 * @Author 苏道羲
 * @Version 1.0
 * @Description
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX",fallback = FallbackService.class)
public interface HystrixService {
    @GetMapping("/hystrix/ok/{id}")
    public String paymentinfo_OK(@PathVariable("id") Integer id);

    @GetMapping("/hystrix/timeout/{id}")
    public String paymentinfo_Timeout(@PathVariable("id") Integer id);
}
